package BlackJack.Model.Events
{
	import flash.events.Event;

	public class LobbyEvent extends Event
	{
		/**	自動選檯 */
		public static const Auto:String            = 'Auto';
		/**	儲值 */
		public static const Charge:String          = 'Charge';
		/**	離開 */
		public static const Exit:String            = 'Exit';
		/**	全螢幕 */
		public static const FullScreen:String      = 'FullScreen';
		/**	遊戲說明 */
		public static const Guide:String           = 'Guide';
		/**	高效能 */
		public static const HighPerformance:String = 'HighPerformance';
		/**	高畫質 */
		public static const HighQuality:String     = 'HighQuality';
		/**	上一頁 */
		public static const LastPage:String        = 'LastPage';
		/**	下一頁 */
		public static const NextPage:String        = 'NextPage';
		/**	縮螢幕 */
		public static const NormalScreen:String    = 'NormalScreen';
		/**	聲音關閉 */
		public static const SoundOff:String        = 'SoundOff';
		/**	聲音打開 */
		public static const SoundOn:String         = 'SoundOn';
		/**	全事件陣列 */
		public static const Events:Array           = [Auto, Charge, Exit, FullScreen, Guide, HighPerformance, HighQuality, LastPage, NextPage, NormalScreen,
			SoundOff, SoundOn];
		/**	要求入桌 */
		public static const EnterTable:String      = 'EnterTable';
		private var _index:int                     = -1;
		private var _pos:int                       = -1;
		private var _tableType:int                 = -1;
		private var _page:int                      = -1;

		public function LobbyEvent(type:String, bubbles:Boolean = false, cancelable:Boolean = false)
		{
			super(type, bubbles, cancelable);
		}

		public function get index():int
		{
			return _index;
		}

		public function get pos():int
		{
			return _pos;
		}

		public function get tableType():int
		{
			return _tableType;
		}

		public function get page():int
		{
			return _page;
		}

		public function set index(value:int):void
		{
			_index = value;
		}

		public function set pos(value:int):void
		{
			_pos = value;
		}

		public function set tableType(value:int):void
		{
			_tableType = value;
		}

		public function set page(value:int):void
		{
			_page = value;
		}
	}
}
